ระบบคอมพ วเตอร และการเช อมโยง Computer Systems and Interfacing บทท 1 พ นฐานด จ ตอล

Similar documents
EEE130 Digital Electronics I Lecture #1_2. Dr. Shahrel A. Suandi

Experiment (6) 2- to 4 Decoder. Figure 8.1 Block Diagram of 2-to-4 Decoder 0 X X

Data Sheet. Electronic displays

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

TYPICAL QUESTIONS & ANSWERS

PURBANCHAL UNIVERSITY

DIGITAL CIRCUIT LOGIC UNIT 9: MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Chapter 9 MSI Logic Circuits

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Course Plan. Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program Outcomes (POs) PSO-1 PSO-2

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Lab #6: Combinational Circuits Design

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

Half-Adders. Ch.5 Summary. Chapter 5. Thomas L. Floyd

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Operating Manual Ver.1.1

Chapter 8 Functions of Combinational Logic

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

DIGITAL FUNDAMENTALS

ME 515 Mechatronics. Introduction to Digital Electronics

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

1. Convert the decimal number to binary, octal, and hexadecimal.

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Helping Material of CS302

PHYS 3322 Modern Laboratory Methods I Digital Devices

NAND/NOR Implementation of Logic Functions

Chapter 7 Memory and Programmable Logic

Semester III. Subject Name: Digital Electronics. Subject Code: 09CT0301. Diploma Branches in which this subject is offered: Computer Engineering

ECE Lab 5. MSI Circuits - Four-Bit Adder/Subtractor with Decimal Output

Minnesota State College Southeast

Chapter 4: Table of Contents. Decoders

Contents Circuits... 1

Table of Contents Introduction

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

DIGITAL ELECTRONICS & it0203 Semester 3

CS302 Glossary. address : The location of a given storage cell or group of cells in a memory; a unique memory location containing one byte.

WINTER 15 EXAMINATION Model Answer

Analogue Versus Digital [5 M]

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Engineering College. Electrical Engineering Department. Digital Electronics Lab

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

Theory Lecture Day Topic Practical Day. Week. number systems and their inter-conversion Decimal, Binary. 3rd. 1st. 1st

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

Physics 323. Experiment # 10 - Digital Circuits

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

4.S-[F] SU-02 June All Syllabus Science Faculty B.Sc. II Yr. Instrumentation Practice [Sem.III & IV] S.Lot

TRAINING KITS ON DIGITAL ELECTRONIC EXPERIMENTS. Verify Truth table for TTL IC s AND, NOT, & NAND GATES

Digital Logic Design: An Overview & Number Systems

MODULE 3. Combinational & Sequential logic


Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

Laboratory 8. Digital Circuits - Counter and LED Display

Department of Computer Science and Engineering Question Bank- Even Semester:

FUNCTIONS OF COMBINATIONAL LOGIC

Page No.1. CS302 Digital Logic & Design_ Muhammad Ishfaq

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

DIGITAL LOGIC DESIGN. Press No: 42. Second Edition

BHARATHIDASAN ENGINEERING COLLEGE, NATTRAMPALLI DEPARTMENT OF ECE

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

CS302 - Digital Logic & Design

Introduction to Digital Electronics

CHAPTER 4 RESULTS & DISCUSSION

Lab #12: 4-Bit Arithmetic Logic Unit (ALU)

Digital Circuits ECS 371

EECS150 - Digital Design Lecture 2 - CMOS

VikiLABS. a g. c dp. Working with 7-segment displays. 1 Single digit displays. July 14, 2017

North Shore Community College

Lesson No Lesson No

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Bell. Program of Study. Accelerated Digital Electronics. Dave Bell TJHSST

Digital Electronic Circuits Design & Laboratory Guideline

[2 credit course- 3 hours per week]

2 Marks Q&A. Digital Electronics. K. Michael Mahesh M.E.,MIET. Asst. Prof/ECE Dept.

DepartmentofElectronicEngineering NEDUniversity ofengineering &Technology LABORATORY WORKBOOK DIGITAL LOGIC DESIGN (TC-201)

UNIT V 8051 Microcontroller based Systems Design

TEST-3 (DIGITAL ELECTRONICS)-(EECTRONIC)

S.K.P. Engineering College, Tiruvannamalai UNIT I

Integrated Circuits 7

OFC & VLSI SIMULATION LAB MANUAL

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Logic Design Viva Question Bank Compiled By Channveer Patil

WINTER 14 EXAMINATION

University of Illinois at Urbana-Champaign

Chapter 3: Sequential Logic Systems

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

EE 210. LOGIC DESIGN LAB.

AE/AC/AT54 LINEAR ICs & DIGITAL ELECTRONICS DEC 2014

Combinational Logic Design

Transcription:

04-612-307 ระบบคอมพ วเตอร และการเช อมโยง Computer Systems and Interfacing บทท 1 พ นฐานด จ ตอล สาขาว ชาว ศวกรรมคอมพ วเตอร คณะว ศวกรรมศาสตร มหาว ทยาล ยเทคโนโลย ราชมงคลพระนคร

Digital and Analog Quantities

Digital and Analog Quantities Analog quantities have continuous values Digital quantities have discrete sets of values

Digital and Analog Quantities Analog quantities have continuous values Digital quantities have discrete sets of values

Digital and Analog Quantities Types of electronic devices or instruments: Analog Digital Combination analog and digital

Binary Digits, Logic Levels, and Digital Waveforms

Binary Digits, Logic Levels, and Digital Waveforms The conventional numbering system uses ten digits: 0,1,2,3,4,5,6,7,8, and 9. The binary numbering system uses just two digits: 0 and 1.

Binary Digits, Logic Levels, and Digital Waveforms The two binary digits are designated 0 and 1 They can also be called LOW and HIGH, where LOW = 0 and HIGH = 1

Binary Digits, Logic Levels, and Digital Waveforms Binary values are also represented by voltage levels

Binary Digits, Logic Levels, and Digital Waveforms Major parts of a digital pulse Base line Amplitude Rise time (t r ) Pulse width (t w ) Fall time (t f )

Binary Digits, Logic Levels, and Digital Waveforms t w = pulse width T = period of the waveform f = frequency of the waveform f 1 T

Binary Digits, Logic Levels, and Digital Waveforms Duty cycle t w 100% T The duty cycle of a binary waveform is defined as:

Basic Logic Operations

Basic Logic Operations There are only three basic logic operations:

Basic Logic Operations The NOT operation When the input is LOW, the output is HIGH When the input is HIGH, the output is LOW The output logic level is always opposite the input logic level.

Basic Logic Operations The AND operation When any input is LOW, the output is LOW When both inputs are HIGH, the output is HIGH Switch S1 AND Switch S2 must be closed to light the lamp

Basic Logic Operations The OR operation When any input is HIGH, the output is HIGH When both inputs are LOW, the output is LOW Switch S1 OR Switch S2 (or both of them) must be closed to light the lamp

Introduction Gates are identified by their function: NOT, AND, NAND, OR, NOR, EX-OR and EX-NOR. Switch S1 AND Switch S2 must be closed to light the lamp Switch S1 OR Switch S2 (or both of them) must be closed to light the lamp

Three basic logic gates

Common logic gates NAND and NOR gates are logically equivalent to AND and OR gates followed by inverters. Since NAND is actually easier to build, ANDs are often constructed as inverted NAND gates.

Example: logic diagram for a + b c

More complicated expression The logic diagram above depicts ((ab + bc )a) For a parenthesized expression, construct parenthesized portion first Note the connectors ( ) used to indicate a continuation of the same input (for a and b)

Same expression, abbreviated Two inverters eliminated: first by including c as an input (instead of c) and second by making the third AND gate a NAND gate In this version, inputs a and b are shown multiple times use same symbols, so we know they re the same inputs

One more example To translate logic diagram to Boolean expression: label output of each gate (starting from left) with appropriate subexpression output of last gate is full expression

Fixed-Function Integrated Circuits

Fixed-Function Integrated Circuits IC package styles Dual in-line package (DIP) Small-outline IC (SOIC) Flat pack (FP) Plastic-leaded chip carrier (PLCC) Leadless-ceramic chip carrier (LCCC)

Fixed-Function Integrated Circuits Dual in-line package (DIP)

Fixed-Function Integrated Circuits Small-outline IC (SOIC)

Fixed-Function Integrated Circuits Flat pack (FP)

Fixed-Function Integrated Circuits Plastic-leaded chip carrier (PLCC)

Fixed-Function Integrated Circuits Leadless-ceramic chip carrier (LCCC)

Introduction to Programmable Logic

Introduction to Programmable Logic SPLD Simple programmable logic devices CPLD Complex programmable logic devices FPGA Field-programmable gate arrays

SPLD Introduction to Programmable Logic PAL (programmable array logic) GAL (generic array logic) PLA (programmable logic array) PROM (programmable read-only memory)

Test and Measurement Instruments Analog Oscilloscope Digital Oscilloscope Logic Analyzer Logic Probe, Pulser, and Current Probe DC Power Supply Function Generator Digital Multimeter

Number Systems

Decimal Numbers The decimal number system has ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 The decimal numbering system has a base of 10 with each position weighted by a factor of 10:

Binary Numbers The binary number system has two digits: 0 and 1 The binary numbering system has a base of 2 with each position weighted by a factor of 2:

Decimal-to-Binary Conversion

Decimal-to-Binary Conversion Sum-of-weights method Repeated division-by-2 method Conversion of decimal fractions to binary

Binary Arithmetic

Binary Arithmetic Binary addition Binary subtraction Binary multiplication Binary division

Complements of Binary Numbers

Complements of Binary Numbers 1 s complements 2 s complements

Complements of Binary Numbers 1 s complement

Complements of Binary Numbers 2 s complement

Signed Numbers

Signed Numbers Signed-magnitude form 1 s and 2 s complement form Decimal value of signed numbers Range of values Floating-point numbers

Signed Numbers Signed-magnitude form The sign bit is the left-most bit in a signed binary number A 0 sign bit indicates a positive magnitude A 1 sign bit indicates a negative magnitude

Signed Numbers 1 s complement form A negative value is the 1 s complement of the corresponding positive value 2 s complement form A negative value is the 2 s complement of the corresponding positive value

Signed Numbers Decimal value of signed numbers Sign-magnitude 1 s complement 2 s complement

Signed Numbers Range of Values 2 s complement form: (2 n 1 ) to + (2 n 1 1)

Hexadecimal Numbers

Hexadecimal Numbers Decimal, binary, and hexadecimal numbers

Hexadecimal Numbers Binary-to-hexadecimal conversion Hexadecimal-to-decimal conversion Decimal-to-hexadecimal conversion

Hexadecimal Numbers Binary-to-hexadecimal conversion 1. Break the binary number into 4-bit groups 2. Replace each group with the hexadecimal equivalent

Hexadecimal Numbers Hexadecimal-to-decimal conversion 1. Convert the hexadecimal to groups of 4-bit binary 2. Convert the binary to decimal

Hexadecimal Numbers Decimal-to-hexadecimal conversion Repeated division by 16

Binary Coded Decimal (BCD)

Binary Coded Decimal (BCD) Decimal and BCD digits

Digital Codes

Digital Codes Gray code ASCII code

Digital Codes Gray code

Digital Codes ASCII code (control characters)

Digital Codes ASCII code (graphic symbols 20h 3Fh)

Digital Codes ASCII code (graphic symbols 40h 5Fh)

Digital Codes ASCII code (graphic symbols 60h 7Fh)

Digital Codes Extended ASCII code (80h FFh) Non-English alphabetic characters Currency symbols Greek letters Math symbols Drawing characters Bar graphing characters Shading characters

Decoders

Decoders Binary decoder 4-bit decoder BCD-to-decimal decoder BCD-to-7-segement decoder

Decoders Binary decoder The output is 1 only when: A 0 = 1 A 2 = 0 A 3 = 0 A 4 = 1 This is only one of an infinite number of examples

Encoder/Decoder Vocabulary ENCODER- a digital circuit that produces a binary output code depending on which of its inputs are activated. DECODER- a digital circuit that converts an input binary code into a single numeric output.

ENCODERS AND DECODERS A 0 O 0 A 0 O 0 A 1 O 1 A 1 O 1 A 2 A 3 ENCODER O 2 A 2 DECODER O 2 O 3 A 4 O 4 A 5 O 5 A 6 O 6 A 7 O 7 ONLY ONE INPUT ACTIVATED AT A TIME BINARY CODE OUTPUT BINARY CODE INPUT ONLY ONE OUTPUT ACTIVATED AT A TIME

THE 8421 BCD CODE BCD stands for Binary-Coded Decimal. A BCD number is a four-bit binary group that represents one of the ten decimal digits 0 through 9. Example: Decimal number 4926 4 9 2 6 8421 BCD coded number 0100 1001 0010 0110

ELECTRONIC ENCODER - DECIMAL TO BCD BCD output Decimal input 0 10 0 1 0 1 7 5 0 3 Decimal to BCD Encoder Encoders are available in IC form. This encoder translates from decimal input to BCD output.

10 line to 4 line Encoder

10 line to 4 line Encoder DECIMA L BINA RY (BCD) ENCODER 8 4 2 1 9 5V 8 5V 7 5V 6 5V 5 5V 4 5V 3 5V 2 5V 1 5V 74147 I9 I8 I7 I6 I5 I4 I3 I2 I1 A3 A2 A1 A0

4 line to 10 line Decoder DECIMA L 9 BINA RY (BCD) 8 0V 4 0V 2 0V 1 0V DECODER 74LS42 9 87 A3 A2 A1 A0 6 54 3 21 0 8 7 6 5 4 3 2 1 0

DECODERS: BCD TO 7-SEGMENT DECODER/DRIVER BCD input 0 01 10 10 Decimal output LED BCD-to- 7-Segment Decoder/ Driver Electronic decoders are available in IC form. This decoder translates from BCD to decimal. Decimals are shown on an 7-segment LED display. This IC also drives the 7-segment LED display.

7-segment display There are two types of 7 segment LED displays; common - anode common - cathode 81

Common Anode In common anode, the anode of all of the LEDs are tied together to positive of the power supply (V cc ) as shown 82

Common Cathode In common cathode, the cathode of all of the LEDs are tied together to ground as shown. GND 83

TEST Q #1- #2- #3- #4- #5- What is the decimal output from the decoder that appears on the 7-segment display? Answer: 30 97 6 BCD input 10 0 01 01 1 0 Decimal output BCD-to- 7-Segment Decoder/ Driver?

BCD-TO-SEVEN SEGMENT DECODER DRIVER V+ 5V A3 A2 A1 A0 74LS47 test RBI g f e d c b a RBO abcdef g.